package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by DK on 16/12/8.
 */
@Entity
@Table(name = "merchant_bank")
@DynamicInsert
@DynamicUpdate
public class MerchantBank extends IDEntityMall{

    /**
     * 银行名称
     */
    @Column(columnDefinition = "varchar(100) comment '银行名称'")
    private String bankName;

    /**
     * 银行编码
     */
    @Column(columnDefinition = "varchar(30) comment '银行编码'")
    private String bankCode;

    /**
     * 商家ID
     */
    @Column(columnDefinition = "bigint comment '商家ID'")
    private Long merchantId;

    /**
     * 平台ID
     */
    @Column(columnDefinition = "bigint comment '平台ID'")
    private Long mallId;

    /**
     * 银行卡号
     */
    @Column(columnDefinition = "varchar(50) comment '银行卡号'")
    private String bankNo;


    /**
     * 银行卡账户名
     */
    @Column(columnDefinition = "varchar(250) comment '银行卡账户名'")
    private String bankAccountName;

    /**
     * 银行支行名
     */
    @Column(columnDefinition = "varchar(250) comment '支行名'")
    private String bankBranchName;



    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public String getBankBranchName() {
        return bankBranchName;
    }

    public void setBankBranchName(String bankBranchName) {
        this.bankBranchName = bankBranchName;
    }

    @Override
    public String toString() {
        return "MerchantBank{" +
                "bankName='" + bankName + '\'' +
                ", bankCode='" + bankCode + '\'' +
                ", merchantId=" + merchantId +
                ", mallId=" + mallId +
                ", bankNo='" + bankNo + '\'' +
                ", bankAccountName='" + bankAccountName + '\'' +
                ", bankBranchName='" + bankBranchName + '\'' +
                '}';
    }
}
